package org.rk.core.tools.office.util.pdfUtil;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @类描述：
 * @author 曹仁道
 * 2017年1月5日 上午9:34:58
 */
public class PdfGridCellBean implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private List<String> contentList;//内容集合，多行
	private List<PdfImageBean> pdfImageBeanList;//图片集合
	private int colspan=0;//需要合并的列,0标识不合并
	private int rowspan=0;//需要合并行，0标识不合并
	private float fontSize=8;//设置字号
	private int fontStyle=PdfGridConst.fontstyle.nomal;//设置字体样式
	private int horizontal=PdfGridConst.horizontal.center;//水平对齐方式
	private int vertical=PdfGridConst.vertical.middle;//垂直对齐方式
	
	public PdfGridCellBean(List<String> contentList){
		this.contentList=contentList;
	}
	public PdfGridCellBean(List<String> contentList,int colspan){
		this.contentList=contentList;
		this.colspan=colspan;
	}
	public PdfGridCellBean(String content,int colspan){
		List<String> contentList=new ArrayList<String>();
		contentList.add(content);
		this.contentList=contentList;
		this.colspan=colspan;
	}
	public PdfGridCellBean(List<PdfImageBean> pdfImageBeanList,int colspan,int rowspan){
		this.pdfImageBeanList=pdfImageBeanList;
		this.colspan=colspan;
		this.rowspan=rowspan;
	}
	public PdfGridCellBean(PdfImageBean pdfImageBean,int colspan,int rowspan){
		List<PdfImageBean> pdfImageBeanList=new ArrayList<PdfImageBean>();
		pdfImageBeanList.add(pdfImageBean);
		this.pdfImageBeanList=pdfImageBeanList;
		this.colspan=colspan;
		this.rowspan=rowspan;
	}
	
	public List<String> getContentList() {
		return contentList;
	}
	public void setContentList(List<String> contentList) {
		this.contentList = contentList;
	}
	public List<PdfImageBean> getPdfImageBeanList() {
		return pdfImageBeanList;
	}
	public void setPdfImageBeanList(List<PdfImageBean> pdfImageBeanList) {
		this.pdfImageBeanList = pdfImageBeanList;
	}
	public int getColspan() {
		return colspan;
	}
	public void setColspan(int colspan) {
		this.colspan = colspan;
	}
	public int getRowspan() {
		return rowspan;
	}
	public void setRowspan(int rowspan) {
		this.rowspan = rowspan;
	}
	public float getFontSize() {
		return fontSize;
	}
	public void setFontSize(float fontSize) {
		this.fontSize = fontSize;
	}
	public int getFontStyle() {
		return fontStyle;
	}
	public void setFontStyle(int fontStyle) {
		this.fontStyle = fontStyle;
	}
	public int getHorizontal() {
		return horizontal;
	}
	public void setHorizontal(int horizontal) {
		this.horizontal = horizontal;
	}
	public int getVertical() {
		return vertical;
	}
	public void setVertical(int vertical) {
		this.vertical = vertical;
	}
	
}
